package com.lwj.mapper.system;

import com.lwj.model.system.Menu;
import com.lwj.vo.system.MenuVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuMapper {
    int deleteByPrimaryKey(String menuId);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(String menuId);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    List<MenuVo> listMenu(@Param("type") String type,@Param("useRole") String useRole,@Param("status") String status);

    List<MenuVo> userRoleMenu(@Param("empId") String empId, @Param("departmentRoleId") String departmentRoleId);

    String childrenIds(@Param("menuId")String menuId);

    void changeStatus(@Param("menuIds")List<String> menuIds,@Param("status") String status);

}
